/*
 * @Description: 
 * @version: 
 * @Author: yyconion
 * @Date: 2021-06-20 16:23:55
 * @LastEditors: yyconion
 * @LastEditTime: 2021-11-16 14:05:57
 */
import {
  createRouter,
  createWebHashHistory
} from 'vue-router'







// 导入路由页面
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import StdInSch from '@/views/menu/StdInSch.vue'
import Refresh from '@/components/Refresh'
import StudentDetail from '@/views/menu/StudentDetail'
import DriverHouseHome from '@/views/driverhouse/DriverHouseHome'






const routes = [{
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/home',
    name: 'Home',
    redirect: {
      name: "StdInSch"
    },
    component: Home,
    children: [{
      path: 'stuinschool',
      name: 'StdInSch',
      component: StdInSch
    }, {
      path: 'refresh',
      name: 'RefreshStudent',
      component: Refresh
    }, {
      path: 'studentdetail',
      name: 'StudentDetail',
      component: StudentDetail
    }]
  },
  {
    path: '/driverhouse',
    name: 'DriverHouseHome',
    component: DriverHouseHome
  }

]

const router = createRouter({
  history: createWebHashHistory(),
  base: '/dist',
  routes
})


export default router